import Vue from 'vue';
import '@/assets/Font/iconfont.css';

// 基本配置
import './user';

// ant 组件
import './components_use';

// 其他组件
import '@/icons';

// 其他组件
import { VueAxios } from '@/utils/request';
import { Icon } from 'ant-design-vue';
import JDate from '@/components/jeecg/JDate';
import JFormContainer from '@/components/jeecg/JFormContainer';
import { HCard, HCcard, HCalendar, HAlert, HListItem, HList, HTooltip, HTable, HQuery, HModal, HModalDark } from '@/components/index';

const myicon = Icon.createFromIconfontCN({
  scriptUrl: '//at.alicdn.com/t/font_2426978_ccqghighp3s.js'
});

Vue.component('JDate', JDate);
Vue.component('JFormContainer', JFormContainer);
Vue.component('my-icon', myicon);
Vue.component('h-card', HCard);
Vue.component('h-ccard', HCcard);
Vue.component('h-calendar', HCalendar);
Vue.component('h-alert', HAlert);
Vue.component('h-list-item', HListItem);
Vue.component('h-list', HList);
Vue.component('h-table', HTable);
Vue.component('h-query', HQuery);
Vue.component('h-modal', HModal);
Vue.component('h-tooltip', HTooltip);
Vue.component('h-modal-dark', HModalDark);

Vue.use(VueAxios);

export const d = (time) => new Date(time || new Date());

export const c = setInterval;

export const r = clearInterval;
